package com.answer.service;
import com.answer.model.dto.question.QuestionAddDTO;
import com.answer.model.dto.question.QuestionEditDTO;
import com.answer.model.dto.question.QuestionQueryDTO;
import com.answer.model.dto.question.QuestionUpdateDTO;
import com.answer.model.entity.Question;
import com.answer.model.reslut.ResultPage;
import com.answer.model.vo.QuestionVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.HashMap;
import java.util.List;

/**
* @author haoshuai
* @description 针对表【question(题目)】的数据库操作Service
* @createDate 2024-06-29 15:23:08
*/
public interface QuestionService extends IService<Question> {

    Boolean addQuestion(QuestionAddDTO questionAddDTO);


    ResultPage<QuestionVo> queryAll(QuestionQueryDTO questionQueryDTO);


    QuestionVo queryOneById(Long id);


    Boolean updateQuestion(QuestionUpdateDTO QuestionUpdateDTO);

    Boolean editQuestion(QuestionEditDTO questionEditDTO);

    List<HashMap<String, String>> getQuestinIdAndNameMap();
}
